package com.atguigu.scw.manager.service;

import com.atguigu.scw.manager.bean.TPermission;

import java.util.List;

public interface PermissionService {

    /**
     * 获取到所有整理好后的菜单
     *
     * @return 菜单列表
     */
    List<TPermission> getAllMenus();

    List<TPermission> getPermissions();

    void savePermission(TPermission permission);

    TPermission getMenuById(Integer id);

    void updateMenu(TPermission permission);

    void deleteMenuById(Integer id);
}
